package com.example.shushiyunsst.fragment.main.home.child.new_sale.chlid.bean;

import android.text.TextUtils;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;

public class AddDeliveryInfoHistoryBean implements Serializable {


    /**
     * aid : 1
     * recName : 不能和你聊天
     * recPhone : 15673145413
     * recAddr : 北京市,市辖区,东城区,东华门街道尽快
     * isDefault : 0
     * createTime : 2020-09-30 14:35:31
     * updateTime : 2020-09-30 14:35:31
     * uid : 2
     * account : 15673145411
     * userNumber : 2719686
     */

    @JSONField(name = "aid")
    private int aid;

    @JSONField(name = "recName")
    private String recName;

    @JSONField(name = "recPhone")
    private String recPhone;

    @JSONField(name = "recAddr")
    private String recAddr;

    @JSONField(name = "isDefault")
    private int isDefault;

    @JSONField(name = "createTime")
    private String createTime;

    @JSONField(name = "updateTime")
    private String updateTime;

    @JSONField(name = "uid")
    private int uid;

    @JSONField(name = "account")
    private String account;

    @JSONField(name = "userNumber")
    private String userNumber;

    @JSONField(name = "areaIds")
    private String areaIds;

    public String getAreaIds() {
        return areaIds;
    }

    public void setAreaIds(String areaIds) {
        this.areaIds = areaIds;
    }

    public int getAid() {
        return aid;
    }

    public void setAid(int aid) {
        this.aid = aid;
    }

    public String getRecName() {
        return recName;
    }

    public void setRecName(String recName) {
        this.recName = recName;
    }

    public String getRecPhone() {
        return recPhone;
    }

    public void setRecPhone(String recPhone) {
        this.recPhone = recPhone;
    }

    public String getRecAddr() {

        return recAddr;
    }

    public String getAreaSuper() {
        if (TextUtils.isEmpty(recAddr)) return recAddr;
        String mSuperArea = recAddr;
        if (mSuperArea.split(",").length > 3) {
            mSuperArea = mSuperArea.substring(0, mSuperArea.lastIndexOf(","));
        }
        return mSuperArea;
    }

    public String getAreaSub() {
        if (TextUtils.isEmpty(recAddr)) return "";
        String mSuperArea = recAddr;
        if (mSuperArea.split(",").length > 3) {
            mSuperArea = mSuperArea.split(",")[mSuperArea.split(",").length-1];
        }
        return mSuperArea;
    }

    public void setRecAddr(String recAddr) {
        this.recAddr = recAddr;
    }

    public int getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(int isDefault) {
        this.isDefault = isDefault;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getUserNumber() {
        return userNumber;
    }

    public void setUserNumber(String userNumber) {
        this.userNumber = userNumber;
    }
}
